/*
 *  Copyright 2008-2010 www.jrails.org
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.rails.extjs.chart;

import org.rails.extjs.AbsBase;
import org.rails.extjs.Option;

public class Style extends AbsBase {

	public Style() {
		super();
	}
	
	public void setPadding(String padding){
		addOption("padding",padding);
	}
	
	public String getPadding(){
		return getString("padding","");
	}
	
	public void setAnimationEnabled(Boolean animationEnabled){
		addOption("animationEnabled", animationEnabled);
	}
	
	public Boolean isAnimationEnabled(){
		return getBoolean("animationEnabled", false);
	}
	
	public void setFont(Option font){
		addOption("font",font);
	}
	
	public Option getFont(){
		return (Option) getOption("font");
	}
	
	public void setBorder(Option border){
		addOption("border", border);
	}
	
	public Option getBorder(){
		return (Option) getOption("border");
	}
	
	public void setBackground(Option background){
		addOption("background",background);
	}
	
	public Option getBackground(){
		return (Option) getOption("background");
	}
	
	public void setLegend(Option legend){
		addOption("legend", legend);
	}
	
	public Option getLegend(){
		return (Option) getOption("legend");
	}
	
	public void setDataTip(Option dataTip){
		addOption("dataTip",dataTip);
	}
	
	public Option getDataTip(){
		return (Option) getOption("dataTip");
	}
	
	public void setXAxis(Option xAxis){
		addOption("xAxis",xAxis);
	}
	
	public Option getXAxis(){
		return (Option) getOption("xAxis");
	}
	
	public void setYAxis(Option yAxis){
		addOption("yAxis",yAxis);
	}
	
	public Option getYAxis(){
		return (Option) getOption("yAxis");
	}
	
	public void setMajorGridLines(Option majorGridLines){
		addOption("majorGridLines",majorGridLines);
	}
	
	public Option getMajorGridLines(){
		return (Option) getOption("majorGridLines");
	}
	
	public void setMinorGridLines(Option minorGridLines){
		addOption("minorGridLines",minorGridLines);
	}
	
	public Option getMinorGridLines(){
		return (Option) getOption("minorGridLines");
	}
	
	public void setZeroGridLine(Option zeroGridLine){
		addOption("zeroGridLine",zeroGridLine);
	}
	
	public Option getZeroGridLine(){
		return (Option) getOption("zeroGridLine");
	}
	
	public void setMajorTicks(Option majorTicks){
		addOption("majorTicks",majorTicks);
	}
	
	public Option getMajorTicks(){
		return (Option) getOption("majorTicks");
	}
	
	public void setMinorTicks(Option minorTicks){
		addOption("minorTicks",minorTicks);
	}
	
	public Option getMinorTicks(){
		return (Option) getOption("minorTicks");
	}

	@Override
	public String getScript() {
		return createOptions();
	}


}
